package com.dubito.pattern.创建型模式.生成器模式OR建造者模式.计算机生产;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class T410 extends Computer {

    private String graphicCard;

    public T410() {
        this.setType("ThinkPad T410i");
    }

    public String getGraphicCard() {
        return graphicCard;
    }

    public void setGraphicCard(String graphicCard) {
        this.graphicCard = graphicCard;
    }

    @Override
    public String toString() {
        return String.format("型号:\t%s,\nCPU:\t%s,\n内存:\t%s,\n硬盘:\t%s,\n显卡:\t%s,\n显示器:\t%s,\n操作系统:\t%s",
                this.getType(), this.getCpu(), this.getRam(), this.getHardDisk(), this.getGraphicCard(), this.getMonitor(), this.getOs());
    }
}
